                                                                     
                                                                     
                                                                     
                                             

<%@page import="models.RatingBest"%>
<%@page import="utils.UsersInfo"%>
<%@ page import="controllers.CommonConnect"%>
<%@page import="models.RatingRegion"%>
<%@ page import="controllers.SolutionConnect" %>
<%@ page import="controllers.RecommendConnect" %>
<%@ page import="models.Favourite" %>
<%@ page import="java.util.List, java.util.HashMap" %>
<%@ page import = "java.util.Date" %>
<%@ page import="com.google.appengine.api.blobstore.BlobInfo, com.google.appengine.api.blobstore.BlobInfoFactory, com.google.appengine.api.blobstore.BlobKey" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService, com.google.appengine.api.blobstore.BlobstoreServiceFactory, com.google.appengine.api.datastore.DatastoreServiceFactory" %>  
<%@ page import="com.googlecode.objectify.Objectify, com.googlecode.objectify.ObjectifyService, com.googlecode.objectify.Query" %>

<%@ include file="/snippets/login-check-snip.jsp" %>
<%@ include file="/snippets/framework-snip.jsp" %>


<%



		
		
	CommonConnect NOM = new CommonConnect();
    List<HashMap<String,Object>> rsArea = NOM.GetLocation();
    List<HashMap<String,Object>> rsCustomerrsArea = NOM.getCustomer();
    List<HashMap<String,Object>> rsSite = NOM.GetArea();
    String ValuesName ="";
    int i =0;
    boolean FlgSeledted = false;
    
    
    String sSolID = (String) request.getAttribute("sol_id");
    if ( sSolID == null ) sSolID =  request.getParameter("sol_id");     
    if ( sSolID == null )
        response.sendRedirect("/home.jsp"); 

    Long SolID = Long.parseLong( sSolID );

    		
    		
    boolean hasAdminRole = (Boolean) pageContext.getAttribute("isADM", PageContext.PAGE_SCOPE);
    boolean hasMPSRole = (Boolean) pageContext.getAttribute("isMPS", PageContext.PAGE_SCOPE);
    boolean hasNOMRole = (Boolean) pageContext.getAttribute("isNOM", PageContext.PAGE_SCOPE);
    boolean hasExpertRole = (Boolean) pageContext.getAttribute("isEXP", PageContext.PAGE_SCOPE);
    boolean hasExecuteRole = (Boolean) pageContext.getAttribute("isEXE", PageContext.PAGE_SCOPE);
    boolean hasMORRole = (Boolean) pageContext.getAttribute("isMOR", PageContext.PAGE_SCOPE);
    boolean hasSGMRole = (Boolean) pageContext.getAttribute("isSGM", PageContext.PAGE_SCOPE);
    
    String useremail = (String) pageContext.getAttribute("USER_EMAILID", PageContext.PAGE_SCOPE);
    SolutionConnect SOL = new SolutionConnect();
    List<HashMap<String,Object>> rs = SOL.getQuery("solID",SolID);
    if ( rs == null )
        response.sendRedirect("/home.jsp");     
    

    //Extract all the values from the list
    String  Title = (String) rs.get(0).get("Title");
    Date    dtImplemented = (Date) rs.get(0).get("dtImplemented");
    Date    dtShared = (Date) rs.get(0).get("dtShared");
    String  teamLead = (String) rs.get(0).get("teamLead");
    String  teamMembers = (String) rs.get(0).get("teamMembers");
    String  otherTeamMembers = (String) rs.get(0).get("otherTeamMembers");
    String  Customer = (String) rs.get(0).get("Customer");
    String  Location = (String) rs.get(0).get("Location");
    String  processArea = (String) rs.get(0).get("processArea");
    String  solType = (String) rs.get(0).get("solType");
    BlobKey teamPicKey = (BlobKey) rs.get(0).get("teamPicKey");
    
    String sSolCode = (String) rs.get(0).get("solCode");
    
    
    String teamPicKeyFileName = "";
    long teamPicKeySize = 0;

    if( teamPicKey != null)
    {
        final BlobInfo blobInfo1 = new BlobInfoFactory().loadBlobInfo(teamPicKey);
        teamPicKeyFileName = blobInfo1.getFilename();
        teamPicKeySize = blobInfo1.getSize();
    }
    
    String  S1 = (String) rs.get(0).get("S1");
    String  S2 = (String) rs.get(0).get("S2");
    String  S3 = (String) rs.get(0).get("S3");
    String  S4 = (String) rs.get(0).get("S4");
    String  S5 = (String) rs.get(0).get("S5");
    String  S6 = (String) rs.get(0).get("S6");
    String  achievedType = (String) rs.get(0).get("achievedType");
    String  achievedTypeDesc = (String) rs.get(0).get("achievedTypeDesc");
    String  achievedValue = (String) rs.get(0).get("achievedValue");
    String  achievedUnits = (String) rs.get(0).get("achievedUnits");
    float   hardSavings = (Float) rs.get(0).get("hardSavings");
    float   costAvoidance = (Float) rs.get(0).get("costAvoidance");
    float   oppurtunityCost = (Float) rs.get(0).get("oppurtunityCost");
    float   annProdSavings = (Float) rs.get(0).get("annProdSavings");
    float   impDays = (Float) rs.get(0).get("impDays");
    
    
    boolean isbestOfRegion = (Boolean) rs.get(0).get("bestOfRegion");
    boolean isbestOfBest = (Boolean) rs.get(0).get("bestOfBest");
    
    boolean ishasHardSavings =  (Boolean) rs.get(0).get("hasHardSavings");
    boolean ishasCostAvoidance=  (Boolean) rs.get(0).get("hasCostAvoidance");
    boolean ishasOppurtunityCost=  (Boolean) rs.get(0).get("hasOppurtunityCost");
    
    
    
    BlobKey attachKey = (BlobKey) rs.get(0).get("attachKey");
    String attachKeyFileName = "";
    long attachKeySize = 0;

    if( attachKey!= null )
    {
        final BlobInfo blobInfo = new BlobInfoFactory().loadBlobInfo(attachKey);
        attachKeyFileName = blobInfo.getFilename();
        attachKeySize = blobInfo.getSize();
    }
    
    String  Status = (String) rs.get(0).get("Status");
    String  submittedBY = (String) rs.get(0).get("submittedBY");
    Date    submittedON = (Date) rs.get(0).get("submittedON");
    String  modifiedBY = (String) rs.get(0).get("modifiedBY");
    Date    modifiedON = (Date) rs.get(0).get("modifiedON");
    boolean mpsCandidate = (Boolean) rs.get(0).get("mpsCandidate");
    boolean nominateSolution = (Boolean) rs.get(0).get("nominateSolution");
    boolean isNominated = nominateSolution;
    boolean isMPS = mpsCandidate;
    boolean canEdit = false;     
    if ( submittedBY.equalsIgnoreCase(useremail) )
    {
        canEdit = true;
    }
    
    boolean isDraft = false;
    if ( Status.equalsIgnoreCase("Draft") )
        isDraft = true;
    
    //Calculating for one solution
    RecommendConnect REC = new RecommendConnect();
    List<HashMap<String,Object>> rcdrs = REC.getQuery("solID", SolID);

    boolean isFavourite = false;
    Objectify ofy = ObjectifyService.begin();
    Query<Favourite> q = ofy.query(Favourite.class).filter("solID", SolID).filter("favouriteOf", useremail);
    for ( Favourite f : q.fetch() ) {                   
        isFavourite = true;
        break;
    }
    
    String strBestofRegionUser = "";
    if ( isbestOfRegion ){      
        Query<RatingRegion> qq = ofy.query(RatingRegion.class).filter("solID", SolID).filter("isActive", true);
        for ( RatingRegion f : qq.fetch() ) {                   
            strBestofRegionUser = UsersInfo.getFullName(f.getRatedBY());
            break;
        }       
    }
    
    String strBestofBestUser = "";
    if ( isbestOfBest ){        
        Query<RatingBest> qqq = ofy.query(RatingBest.class).filter("solID", SolID).filter("isActive", true);
        for ( RatingBest f : qqq.fetch() ) {                    
            strBestofBestUser = UsersInfo.getFullName(f.getRatedBY());
            break;
        }       
    }
    
    if ( isDraft ){
        isNominated = isMPS = isFavourite = isbestOfRegion = isbestOfBest = false;
    }
%>



<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">var _show_editor=false;</script>
<style type="text/css" media="all">@import "/css/global.css";</style>
<title>Savvy Solutions</title><link rel="stylesheet" type="text/css" href="/css/coreBlue.css">
<link rel="stylesheet" type="text/css" href="/css/defaultThemeNew.css">
<link rel="stylesheet" type="text/css" href="/css/iehacks1.css">
<link rel="stylesheet" type="text/css" href="/css/blog.css">
<link rel="stylesheet" type="text/css" href="/css/celestica_microsite.css">
<link rel="stylesheet" type="text/css" href="/css/nyroModal.css">
<link rel="stylesheet" type="text/css" href="/css/busCard.css">
 
<script language="JavaScript" type="text/javascript" src="/js/calendar.js?OpenJavascriptLibrary"> 
</script>



 
<script language="JavaScript" type="text/javascript"> 

 
//AJaX Name Picker
function getSingleName(returnField, specialParameters) {
 
frm = window.document.forms[0];
var url = "/" + frm.imgPath.value;
    setTimeout("window.open('"+url+"/NABPickerSingle?open&returnfield=" + returnField + specialParameters + "', 'popupWindow', 'toolbar=no,directories=no,status=no,scrollbars=auto,resizable=yes,resize=yes,menubar=no,height=410,width=320')", 1);
}
 
function GetMultiNames(returnField, specialParameters) {
frm = window.document.forms[0];
var url = "/" + frm.imgPath.value;
    var turl =  url + "/NABPickerMulti?open&returnfield=" + returnField + specialParameters;
    var wchrome = "toolbar=no,directories=no,status=no,scrollbars=auto,resizable=yes,resize=yes,"
    wchrome += "menubar=no,height=400,width=580,top=150,left=250";
    setTimeout("window.open('" + turl +  "', 'popupWindow', '" + wchrome + "')", 1);
}
 
function RemoveBestOfBestpick()
{
 
var cont = confirm( "You are about to remove selected solution from your Picks, Do you want to continue?");
        if ( !cont) return;
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
agturl= "/" + frm.imgPath.value+"/agtremovefromBestOFBestPick?openagent&"+currusername+"&"+curdocid
xmlhttp.open("GET",agturl,false)
xmlhttp.send()
xmlstr=xmlhttp.responseText
alert(ReplaceTags(xmlstr).replace(/^\s\s*/, '').replace(/\s\s*$/, ''));
 
//document.getElementById("agtresponse").innerHTML=xmlstr
//alert(document.getElementById("agtresponse").innerText)
//location.href="/" + frm.imgPath.value+"/frmShowSCPicks?OpenForm&login"
location.href=location.href
}
 
function limitText(limitField, limitCount, limitNum) {
 
    if (limitField.value.length > limitNum) {
        limitField.value = limitField.value.substring(0, limitNum);
    } else {
        limitCount.value = limitNum - limitField.value.length;
    }
}
 
 
function addmpscandidate(){ 

//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

    SolID = document.forms[0].txtsol_id.value
    agturl= "/ajxaddmps"
    xmlhttp.open("POST",agturl,false)
    xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    xmlhttp.send("sol_id=" + SolID)
    xmlstr=xmlhttp.responseText
    alert(xmlstr); 
    
    document.location.reload(true);
    location.href=location.href
}
 
 
function removempscandidate(){
    
    //for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

    SolID = document.forms[0].txtsol_id.value
    agturl= "/ajxremovemps"
    xmlhttp.open("POST",agturl,false)
    xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    xmlhttp.send("sol_id=" + SolID)
    xmlstr=xmlhttp.responseText
    alert(xmlstr); 
    
    document.location.reload(true);
    location.href=location.href
    
}
 
function Submitsavvy()
{
 
var btn = document.getElementById( "btnSubmitIdeaGenerator");
if (QuerySave(document.forms[0]) && validatecustomfields(document.forms[0].chkBenefits) && validateFinanBenefit(document.getElementsByName("Finance"))) { 
var cont = confirm( "You are about to submit the solution. Do you want to continue?");
        if ( !cont) return;
        tinyMCE.triggerSave();
btn.click();
}
 
}
 
function savesavvy()
{
tinyMCE.triggerSave();
var btn = document.getElementById( "btnSaveIdeaGenerator");
btn.click();
}
 
function savesavvyadmin()
{
tinyMCE.triggerSave();
var btn = document.getElementById( "btnSaveIdeaGeneratoradmin");
btn.click();
 
}
 
function deletedraftsavvy()
{
var btn = document.getElementById( "btnDeletesavvysolution");
var cont = confirm( "You are about to delete this draft solution. Do you want to continue?");
        if ( !cont) return;
                
btn.click();
 
}
 
function cancelsavvy()
{
    /*
frm=document.forms[0];
dbName=document.forms[0].dbName.value
HTTP_Referer=document.forms[0].HTTP_Referer.value
if (HTTP_Referer=="") {
document.location.href="/" +dbName + "/vwAllSolutionsdocs?OpenView&Start=1&Count=10"
}
else{
document.location.href=HTTP_Referer
}
//var tmpurl="/" +dbName + "/vwAllSolutionsdocs?OpenView&Start=1&Count=10"
 */
 
    document.location.href = "/home.jsp";
}
 
function showTimeBar()
{
 width = document.body.clientWidth;
 height = document.body.clientHeight;
 Hoffset = img.offsetHeight;
 Woffset = img.offsetWidth;
 img.style.left = (width-Woffset)/2;
 img.style.top = (height-Hoffset)/2;
 img.style.visibility = "visible";
}
 
function Editsavvy()
{
var btn = document.getElementById( "btnEditdoc");
var key = document.getElementById("SolKey").value;
var cont = confirm( "You are about to edit the Solution, Do you want to continue?");
        if ( !cont) return;
        window.open("/modules/default/edit-share-solution.jsp?sol_id="+key,"_self",'status=yes',true);
        
        
//btn.click();
 
}
 
function commfeddback()
{
var btn = document.getElementById( "btnCommFeedback");
 
var cont = confirm( "You are about to submit feedback continue?");
        if ( !cont) return;
                
if (QuerySave(document.forms[0])) { btn.click() };
}
 
 
function chgBG(src,color) { src.bgColor = color }
 
 
 
function pageview(k)
{
f = document.forms[0]
//------------------------
oXsl = new ActiveXObject("Microsoft.XMLDOM")
oXsl.async = false
oXsl.load("/" + f.dbName.value + "/z_cv.xsl?openpage");
//------------------------
//alert("/" + f.dbName.value + "/vwMainView?ReadViewEntries&start="+k+"Count=10&CollapseView")
st = getHtmlFromXml("/" + f.dbName.value + "/View All?ReadViewEntries&Start="+k+"&Count=10&CollapseView")  
idContent.innerHTML = st
}
function toggleSection(obj, bSync)
{
    objLink = obj.nextSibling   
    objCont = objLink.nextSibling
 
    if(objCont.style.display == 'block' && !bSync)
    {
        objCont.style.display = 'none';
        obj.innerText = '+ '
    }
    else
    {
        objCont.style.display = 'block';
        obj.innerText = '- ' 
    }
    if(objCont.children.length == 0)
    {
        objCont.innerHTML = '<span>Loading ...</span>'
        //alert(objLink.NextEntrySrc)
        objCont.innerHTML = getHtmlFromXml(objLink.NextEntrySrc)
    }   
 
}
 
function loadXMLDoc(fname)
{
  var xmlDoc;
  // code for IE
  if (window.ActiveXObject)
  {
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  }
  // code for Mozilla, Firefox, Opera, etc.
  else if (document.implementation
  && document.implementation.createDocument)
  {
    xmlDoc=document.implementation.createDocument("","",null);
   }
  else
  {
    alert('Your browser cannot handle this script');
  }
xmlDoc.async=false;
xmlDoc.load(fname);
return(xmlDoc);
}
 
function getHtmlFromXml(xmlsrc)
{
if (window.ActiveXObject)
  {
 
        oXml = new ActiveXObject("Microsoft.XMLDOM")
        }
        else if (document.implementation
  && document.implementation.createDocument)
  {
  oXml =document.implementation.createDocument("","",null);
   }
  else
  {
    alert('Your browser cannot handle this script');
  }
 
        
        oXml.async = false
        oXml.load(xmlsrc); 
        f = document.forms[0]
 
dbName=document.forms[0].dbName.value
var isadmin=document.getElementById("issupereditadmin").innerHTML;
 
if( isadmin=="Yes"){
 
        oXsl=loadXMLDoc("/" + dbName + "/feedback.xsl?openpage");
    //  alert(oXml.xml)
    }
    else
    {
oXsl=loadXMLDoc("/" + dbName + "/feedbackgeneral.xsl?openpage");
}
        
        if (window.ActiveXObject)
  {
        strRet = oXml.transformNode(oXsl);
 
 
  }
  // code for Mozilla, Firefox, Opera, etc.
  else if (document.implementation  && document.implementation.createDocument)
  {
    xsltProcessor=new XSLTProcessor();
    xsltProcessor.importStylesheet(oXsl);
  strRet= xsltProcessor.transformToFragment(oXml,document);
 
  }
        oXml = null;
 
        //alert(strRet)
        return strRet
}
 
function doSync(strPos)
{
 
    ar = strPos.split(".")
    temp = ""
    for(i = 0; i < ar.length - 1; i++)
    {   
        temp = temp + ar[i]
        obj = document.getElementById(temp)
        toggleSection(obj.children(0), true)
        temp = temp + "."
    }
    obj.scrollIntoView()
}
 
function myabc(obj)
{
 
objCont=document.getElementById("b"+obj.id)
    if(objCont.style.display == 'block' )
    {
        objCont.style.display = 'none';
    
    }
    else
    {
        objCont.style.display = 'block';
    
    }
 
}
 
function addtomybasketold()
{
var btn = document.getElementById( "btnAddBasket");
 
var cont = confirm( "You are about to add selected solution to your basket, Do you want to continue?");
        if ( !cont) return;
btn.click();
 
}
 
function addtomybasket()
{
var btn = document.getElementById( "btnAddBasket");
 
 
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
 
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

SolID = document.forms[0].txtsol_id.value
agturl= "/ajxaddfavourite"
xmlhttp.open("POST",agturl,false)
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("sol_id=" + SolID)
xmlstr=xmlhttp.responseText
alert(xmlstr); 

document.location.reload(true);
location.href=location.href


//document.getElementById("agtresponse").innerHTML=xmlstr
//alert(document.getElementById("agtresponse").innerText)
//location.href=location.href

}
 
 
 
function removefrommybasketold()
{
var btn = document.getElementById( "btnRemoveBasket");
 
var cont = confirm( "You are about to remove selected Solution from your Favourites, Do you want to continue?");
        if ( !cont) return;
btn.click();
 
}
 
function removefrommybasket()
{
var btn = document.getElementById( "btnRemoveBasket");
 
var cont = confirm( "You are about to remove selected solution from your Favourites, Do you want to continue?");
        if ( !cont) return;
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
SolID = document.forms[0].txtsol_id.value
agturl= "/ajxremovefavourite"
xmlhttp.open("POST",agturl,false)
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("sol_id=" + SolID)
xmlstr=xmlhttp.responseText
alert(xmlstr); 

document.location.reload(true);
location.href=location.href
//document.getElementById("agtresponse").innerHTML=xmlstr
//alert(document.getElementById("agtresponse").innerText)
//location.href="/" + frm.imgPath.value+"/frmShowMyBasket?OpenForm&login"
//location.href=location.href

}

function removefromBestOfRegion()
{
 
var cont = confirm( "You are about to remove selected solution from your Picks, Do you want to continue?");
        if ( !cont) return;
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

SolID = document.forms[0].txtsol_id.value   
agturl= "/ajxremovebestofregion"
xmlhttp.open("POST",agturl,false)
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("sol_id=" + SolID)
xmlstr=xmlhttp.responseText
alert(xmlstr);
document.location.reload(true);
location.href=location.href


}

function removefromBestOfBest()
{
 
var cont = confirm( "You are about to remove selected solution from your Picks, Do you want to continue?");
        if ( !cont) return;
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

SolID = document.forms[0].txtsol_id.value   
agturl= "/ajxremovebestofbest"
xmlhttp.open("POST",agturl,false)
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("sol_id=" + SolID)
xmlstr=xmlhttp.responseText
alert(xmlstr);
document.location.reload(true);
location.href=location.href

}

function removefromGMpick()
{
 
var cont = confirm( "You are about to remove selected solution from your Picks, Do you want to continue?");
        if ( !cont) return;
currusername=document.getElementById("logguser").innerHTML
curdocid=document.getElementById("loggdocid").innerHTML
frm=document.forms[0]
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
agturl= "/" + frm.imgPath.value+"/agtremovefromGMPick?openagent&"+currusername+"&"+curdocid
xmlhttp.open("GET",agturl,false)
xmlhttp.send()
xmlstr=xmlhttp.responseText
alert(ReplaceTags(xmlstr).replace(/^\s\s*/, '').replace(/\s\s*$/, ''));
 
//document.getElementById("agtresponse").innerHTML=xmlstr
//alert(document.getElementById("agtresponse").innerText)
//location.href="/" + frm.imgPath.value+"/frmShowSCPicks?OpenForm&login"
location.href=location.href
}
 
 
function removefromSCpick()
{

 
var cont = confirm( "You are about to remove selected solution from Site Coach Pick, Do you want to continue?");
        if ( !cont) return;
/*if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}*/
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
SolID = document.forms[0].txtsol_id.value   
//agturl= "/ajxremovenomination?sol_id=" + document.forms[0].txtsol_id.value
agturl= "/ajxremovenomination"
xmlhttp.open("POST",agturl,false)
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("sol_id=" + SolID)
xmlstr=xmlhttp.responseText
alert(xmlstr);
 
//document.getElementById("agtresponse").innerHTML=xmlstr
//alert(document.getElementById("agtresponse").innerText)
//location.href="/" + frm.imgPath.value+"/frmShowSCPicks?OpenForm&login"
location.href=location.href
}
 
 
 
function clickd(aaa)
{
//alert(aaa.id)
//alert(document.getElementById("td"+aaa.id).innerText)
k=document.getElementById("td"+aaa.id).innerText
document.location.href="/"+dbName+"/frmSolTeamLeadSearch?openform&"+k
 
}
 
function removeAdopt(adoptID, solID)
{
var cont = confirm( "You are about to remove selected adopted solution from your Picks, Do you want to continue?");
if ( !cont) return;
 

if (window.ActiveXObject)
{
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
//for ie
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
    }

//alert(adoptID);
//alert(solID);

xmlhttp.open("POST","/ajxremoveadoptionsolution?adopt_id="+ adoptID + "&sol_id=" + solID,false)
xmlhttp.send()
st=xmlhttp.responseText 

if (window.ActiveXObject)
{
    if( document.getElementById("idContent") !=null)
    {
        document.getElementById("idContent").innerHTML = st
    }
}

}
 
 
function addExpert()
{
var cont = confirm( "You are about to recommend this solution as an expert. Do you want to continue?");
        if ( !cont) return;

SolID = document.forms[0].txtsol_id.value
frm=document.forms[0]
if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
vurl= "/ajxcheckexpertvalidation"
 
//checking whether browser is mozila or Netscape
    if (window.XMLHttpRequest) 
    {   
//      alert('INSIDE HTTP')
        req = new XMLHttpRequest();
//      alert(req+' - - req - - ')
        //req.overrideMimeType('text/xml');
 
        req.onreadystatechange = processReqChange_lookup;
        req.open("POST", vurl , true);
        req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
        req.send("sol_id=" + SolID);
             } 
        //checking whether browser is IE 
    else if (window.ActiveXObject)
    {
//          alert('entered the else of XMLHTTPRequest--- '+ window.ActiveXObject)
        req=new ActiveXObject("Microsoft.XMLHTTP")
        
         if (req)
       { 
 
        req.onreadystatechange = processReqChange_lookup;
        req.open("POST", vurl, true);
        req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
        req.send("sol_id=" + SolID);
                }
                } 
}
 
function ReplaceTags(htmlstr){
      var regExp = /<\/?[^>]+>/gi;
        htmlstr = htmlstr.replace(regExp,"");
        return htmlstr;
      }
 
//new coded by siva
 
var req;
function processReqChange_lookup()
{  
 
    if (req.readyState == 4)             
 /*Only process if XML file is loaded completely:4="Complete" */
  {
 
         if (req.status == 200)           
 /*Only process if everything is ok*/
            { 
 
xmlstr=req.responseText
populatelookup(xmlstr)
                } 
     else 
     {
        alert("There was a problem retrieving the XML data:n" + req.statusText);
             }
             
          }
        }
        function populatelookup(xmlstr)
{
 
document.getElementById("recomm").innerHTML=xmlstr
//alert(document.getElementById("recomm").innerText)
//alert(xmlstr)
var substr=xmlstr
//alert(xmlstr)
//alert(substr.indexOf("not recommended"))
if(substr.indexOf("not recommended")>=0)
{
//alert("dddddd")
document.getElementById("showdialogExpert").click()
 
}
else
{
alert("You have already recommended , thanks")
}
}
//for question responses
var xmlstr=""
 
function processReqChange_lookupQresp()
{ 
 
 
    if (req.readyState == 4)             
 /*Only process if XML file is loaded completely:4="Complete" */
  {
 
         if (req.status == 200)           
 /*Only process if everything is ok*/
            { 
 
xmlstr=req.responseText
populatelookupQresp(xmlstr)
                } 
     else 
     {
        alert("There was a problem retrieving the XML data:n" + req.statusText);
             }
             
          }
        }
    function    populatelookupQresp(xmlstr)
{
var curdocid=document.getElementById("currdocunid").innerHTML
var dbName=document.getElementById("currdatabasepath").innerText
 
document.getElementById("idQResponses").innerHTML=xmlstr
 
jQuery.noConflict();
jQuery(document).ready(function(){
jQuery('#sticky').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky2').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky3').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky4').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky5').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky6').cluetip({sticky: true, closePosition: 'title', arrows: true });
jQuery('#sticky7').cluetip({sticky: true, closePosition: 'title', arrows: true });
 
var tempcounter=document.getElementById("counterQ").innerText
 
for(i=1;i<=tempcounter;i++)
{
 
jQuery("#Qaccordion"+i).accordion({
 
 
 
autoHeight: false,
icons: {
                header: "ui-icon-circle-arrow-e",
                headerSelected: "ui-icon-circle-arrow-s"
            }
            
        });
}
 
 
  var dialogOptsExpert = {
        modal: true,
        bgiframe: true,
        autoOpen: false,
        height: 300,
        width: 500,
        draggable: true,
        resizeable: true,
close: function(event, ui){  
location.reload(true);
    } ,
buttons: {
                'Post Recommendation': function() {
                if(document.getElementById("expertComments").value=="")
                {
                alert("Please fill in the Comments")
                return false;
                }
var dataString = 'expertComments='+document.getElementById("expertComments").value+"&sol_id=" + document.forms[0].txtsol_id.value;
jQuery.ajax({
type: "POST",
url: "/ajxaddexpert",
data: dataString,
success: function() {
 
 
 
}
})
alert("Thank you! Your recommendation is saved.");
                   jQuery(this).dialog('close');
                    //document.location.href=document.location.href
                },
                Cancel: function() {
                    jQuery(this).dialog('close');
                }
 
},
            
        open: function() {
        //display correct dialog content
 
 
        
 
        jQuery("#ExpertRecommendation").load("/modules/default/expert-comments-popup.jsp");
 
}
        };
//end of expert reocmme
 
    //define config object
   var dialogOpts = {
        modal: true,
        bgiframe: true,
        autoOpen: false,
        height: 300,
        width: 500,
        draggable: true,
        resizeable: true,
buttons: {
                'Post Question': function() {
                if(document.getElementById("Question").value=="")
                {
                alert("Please fill in the question")
                return false;
                }

var dataString = 'question='+document.getElementById("Question").value+"&sol_id=" + document.forms[0].txtsol_id.value;                
jQuery.ajax({
type: "POST",
url: "/ajxpostquestion",
data: dataString,
success: function() {
 
 
 
}
})
alert("Thanks for posting question");
                   jQuery(this).dialog('close');
document.location.href=document.location.href
                },
                Cancel: function() {
                    jQuery(this).dialog('close');
                }
 
},
            
        open: function() {
        //display correct dialog content
  
        jQuery("#postquestion").load("/modules/default/question-post-popup.jsp");
 
}
        };
 
    //define dialog config for response object
   var dialogOptsRes = {
        modal: true,
        bgiframe: true,
        autoOpen: false,
        height: 300,
        width: 500,
        draggable: true,
        resizeable: true,
buttons: {
                'Reply Question': function() {
                   if(document.getElementById("QuestionReply").value=="")
                {
                alert("Please fill in the Reply")
                return false;
                }
 
                
var dataString = 'questionreply='+document.getElementById("QuestionReply").value + "&qid=" + document.getElementById("qid").value + "&sol_id=" + document.forms[0].txtsol_id.value;
jQuery.ajax({
type: "POST",
url: "/ajxwritereply",
data: dataString,
success: function() {
 
 
}
})
alert("Thanks for posting the reply");
                   jQuery(this).dialog('close');
document.location.href=document.location.href
                },
Cancel: function() {
                    jQuery(this).dialog('close');
                }
},
            
        open: function() {
        //display correct dialog content
jQuery("#"+this.id+"").load("/modules/default/reply-post-popup.jsp?Qid="+this.id);
 
 
}
        };
 
    jQuery("#postquestion").dialog(dialogOpts); //end dialog
    jQuery('#showdialog').click(
        function (){
            jQuery("#postquestion").dialog("open");
            return false;
        }
    );
    jQuery('#showdialogbottom').click(
        function (){
            jQuery("#postquestion").dialog("open");
            return false;
        }
    );
    
    
    
    jQuery("#ExpertRecommendation").dialog(dialogOptsExpert);   //end dialog
    jQuery('#showdialogExpert').click(
        function (){
 
            jQuery("#ExpertRecommendation").dialog("open");
            return false;
        }
    );
    
 
 
 
 
jQuery('a.cancel').click(function() {  
  var a = this;  
    jQuery("#r"+this.id).dialog(dialogOptsRes); //end dialog
jQuery("#r"+this.id).dialog("open");
            return false;
 
 
});
//for expert recommendation 
 
});
 
 
}
 
function printcomment()
{
    var key = document.getElementById("SolKey").value;
    
dbName=document.forms[0].dbName.value
parentdocid=document.getElementById("currdocunid").innerHTML
var tmpurl="/modules/default/print-solution.jsp?sol_id="+key;
window.open(tmpurl)
//document.location.href=tmpurl
}
 
function trim(str, chars) {
    return ltrim(rtrim(str, chars), chars);
}
 
function ltrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
 
function rtrim(str, chars) {
    chars = chars || "\\s";
    return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
// for photo effects
 
//Image zoom in/out script- by javascriptkit.com
//Visit JavaScript Kit (http://www.javascriptkit.com) for script
//Credit must stay intact for use
 
var zoomfactor=0.05 //Enter factor (0.05=5%)
 
function zoomhelper(){
if (parseInt(whatcache.style.width)>10&&parseInt(whatcache.style.height)>10){
whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
}
}
 
function zoom(originalW, originalH, what, state){
if (!document.all&&!document.getElementById)
return
whatcache=eval("document.images."+what)
prefix=(state=="in")? 1 : -1
if (whatcache.style.width==""||state=="restore"){
whatcache.style.width=originalW+"px"
whatcache.style.height=originalH+"px"
if (state=="restore")
return
}
else{

beginzoom=setInterval("zoomhelper()",100)
}
}

function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}
 
function SaveMPS()
{
alert("SaveMPS");
//alert(DocID);
}

</script>
 
<script language="JavaScript" type="text/javascript"> 
<!-- 
document._domino_target = "_self";
function _doClick(v, o, t) {
  var returnValue = false;
  var url="/global/collaboration/SavvySol.nsf/0/8ab00891a7fddd4a4825766d002a23af?OpenDocument&Click=" + v;
  if (o.href != null) {
    o.href = url;
    returnValue = true;
  } else {
    if (t == null)
      t = document._domino_target;
    window.open(url, t);
  }
  return returnValue;
}
// -->
</script>
 
<script language="JavaScript" type="text/javascript"> 
<!-- 
function clear1()
{
document.forms[0].SearchQuery1.value=""
 
}
 
function copydata()
{
 
document.forms[0].SearchQuery.value=document.forms[0].SearchQuery1.value
}
function srchQuery()
{
temp=document.getElementById("SearchQuery").value
currDBPath=document.getElementById("currDBPath").value
document.location.href="/" +currDBPath +"/frmTmpSearchDoc?createdocument&"+temp
}
 
 
// -->
</script>
 
<script language="JavaScript" type="text/javascript"> 
<!-- 
function IsNumber(val) {
oneDecimal = false;
inputVal = val; 
  inputStr = inputVal.toString();
 for (var i = 0; i < inputStr.length; i++) { 
     var oneChar = inputStr.charAt(i);
    if (i == 0 && oneChar == "-") {
    if (inputStr.length == 1) {
       return false;
    }else{
      continue
    }
    }
   if( inputStr.length != 1 && oneChar == "." && !oneDecimal) { 
       oneDecimal = true;
       continue;
  }
   if( oneChar < "0" || oneChar > "9") { 
       return false;
  }
}
return true;
}
 
function validatecustomfields(radVal){
 
 var radChk=radVal;
 if(radChk[1].checked){
   if (document.forms[0].taQuality.value==''){
   alert("Please enter appropriate value for Quality results");
   return false;
    } 
   //select quality option
   
    if (document.forms[0].cmbQualityOptions.selectedIndex == 0) {
                     sFieldValue = "";
       } else {
                     sFieldValue = String(document.forms[0].cmbQualityOptions.selectedIndex);
       }
       
       if (sFieldValue=="") {
      alert("Please enter appropriate value for Quality option")
     }
     else{
return true;
            }      
  //endselect quality option
 } else if(radChk[2].checked){
   if (document.forms[0].taDays.value==''){
   alert("Please enter appropriate value for Order Lead Time");
   } 
  else{
    return true;
            }
 } 
 
else return true;
 
}
 
function validateFinanBenefit(radVal)
 {
 var radChk=radVal;
 
if(radChk[0].checked==false && radChk[1].checked==false && radChk[2].checked==false)
{
alert("Please select at least one of the Financial Benefit categories");
return false;
}
 
if(radChk[0].checked==true && radChk[1].checked==true && radChk[2].checked==false)
{
    if (document.forms[0].HardSavings.value!='' && document.forms[0].CostAvoid.value!='')
    {
        if (document.forms[0].HardSavings.value=="0" || document.forms[0].CostAvoid.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
    
}
 
else if(radChk[0].checked==true && radChk[1].checked==false && radChk[2].checked==true)
{
    if (document.forms[0].HardSavings.value!='' && document.forms[0].OpporCost.value!='')
    {
    if (document.forms[0].HardSavings.value=="0" || document.forms[0].OpporCost.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
 
else if(radChk[0].checked==true && radChk[1].checked==true && radChk[2].checked==true)
{
    if (document.forms[0].HardSavings.value!='' && document.forms[0].CostAvoid.value!='' && document.forms[0].OpporCost.value!='')
    {
    if (document.forms[0].HardSavings.value=="0" || document.forms[0].CostAvoid.value=="0" || document.forms[0].OpporCost.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
 
else if(radChk[0].checked==true && radChk[1].checked==false && radChk[2].checked==false)
{
    if (document.forms[0].HardSavings.value!='')
    {
    if (document.forms[0].HardSavings.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
 
else if(radChk[0].checked==false && radChk[1].checked==true && radChk[2].checked==false)
{
    if (document.forms[0].CostAvoid.value!='')
    {
    if (document.forms[0].CostAvoid.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
 
else if(radChk[0].checked==false && radChk[1].checked==false && radChk[2].checked==true)
{
    if (document.forms[0].OpporCost.value!='')
    {
    if (document.forms[0].OpporCost.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
 
else if(radChk[0].checked==false && radChk[1].checked==true && radChk[2].checked==true)
{
    if (document.forms[0].CostAvoid.value!='' && document.forms[0].OpporCost.value!='')
    {
    if (document.forms[0].CostAvoid.value=="0" || document.forms[0].OpporCost.value=="0")
        {
            alert("Please enter a value > 0 for the Financial Benefit category");
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
    alert("Please enter a value for the selected Financial Benefit category (Hard Savings, Cost Avoidance, Opportunity Costs)");
    return false;
    }
}
else if(radChk[0].checked==false && radChk[1].checked==false && radChk[2].checked==false)
{
    return true;
}
 
} // End of Function
 
 
function getFieldValue ( theField, vType ) { 
         //this function will return the field value (or value list) based on the element type 
         
         theValue = ""; 
         sep = ""; 
         hits = 0; 
         //text is the user-entered value as a string
         if ( vType == "Text" ) return ( theField.value ); 
 
         //textarea is the user-entered value as a string array of one element
         if ( vType == "Textarea" ) return ( theField[0].value ); 
         
           //checkboxes & radio buttons are not so simple
        if ( vType == "Checkbox" || vType == "Radio" ) { 
        
                if ((theField.value != null) && (theField.checked ))
                
                 theValue = theField.value
            
                else for ( i = 0; i < theField.length; i++ ) { 
                
                    if ( theField[i].checked ) { 
                    
                          hits++; 
                        if ( hits > 1 ) {
                            sep = "; ";
                          } 
                      theValue += sep + theField[i].value; 
                } 
          }
          return ( theValue );
      } 
       
       
     //select is an array of selection pointers to an array of strings representing the choices
     if ( vType == "Select" ) { 
          for ( i = 0; i < theField.options.length; i++ ) {
                if ( theField.options[i].selected ){
                if( theField.options[i].value !=""){
                    theValue += theField.options[i].value;
                }else{
                    theValue += theField.options[i].text;
                }   
            }   
          } 
          return ( theValue );
     }
}
 
function hideApprovers(radVal){
 
 var radChk=document.getElementsByName(radVal.name);
 if(radChk[1].checked){
   document.getElementById('chkquality').style.visibility='visible';
    document.getElementById('chkdays').style.visibility='hidden';
         document.getElementById('chkprodsav').style.visibility='hidden';
   document.getElementById('chkmatsav').style.visibility='hidden';
      } else if(radChk[2].checked){
   document.getElementById('chkquality').style.visibility='hidden';
    document.getElementById('chkdays').style.visibility='visible';
         document.getElementById('chkprodsav').style.visibility='hidden';
   document.getElementById('chkmatsav').style.visibility='hidden';
 } 
 
else {
 document.getElementById('chkquality').style.visibility='hidden';
    document.getElementById('chkdays').style.visibility='hidden';
         document.getElementById('chkprodsav').style.visibility='hidden';
   document.getElementById('chkmatsav').style.visibility='hidden';
  }
}
 
function hideFinanApprovers(CurVal){
 var radChk=document.getElementsByName(CurVal.name);
  
 if(radChk[0].checked==true && radChk[1].checked==true && radChk[2].checked==false)
{
    document.getElementById('chkhardsaves').style.visibility='visible';
    document.getElementById('chkcostavoid').style.visibility='visible';
    document.getElementById('chkopporcost').style.visibility='hidden';
    document.forms[0].OpporCost.value="";
}
 
else if(radChk[0].checked==true && radChk[1].checked==false && radChk[2].checked==true)
{
    document.getElementById('chkhardsaves').style.visibility='visible';
    document.getElementById('chkcostavoid').style.visibility='hidden';
     document.getElementById('chkopporcost').style.visibility='visible';
     document.forms[0].CostAvoid.value="";
}
 
else if(radChk[0].checked==true && radChk[1].checked==true && radChk[2].checked==true)
{
    document.getElementById('chkhardsaves').style.visibility='visible';
    document.getElementById('chkcostavoid').style.visibility='visible';
     document.getElementById('chkopporcost').style.visibility='visible';
}
 
else if(radChk[0].checked==true && radChk[1].checked==false && radChk[2].checked==false)
{
    document.getElementById('chkhardsaves').style.visibility='visible';
    document.getElementById('chkcostavoid').style.visibility='hidden';
     document.getElementById('chkopporcost').style.visibility='hidden';
     document.forms[0].CostAvoid.value="";
     document.forms[0].OpporCost.value="";
}
 
else if(radChk[0].checked==false && radChk[1].checked==true && radChk[2].checked==false)
{
    document.getElementById('chkhardsaves').style.visibility='hidden';
    document.getElementById('chkcostavoid').style.visibility='visible';
     document.getElementById('chkopporcost').style.visibility='hidden';
     document.forms[0].HardSavings.value="";
     document.forms[0].OpporCost.value="";
}
 
else if(radChk[0].checked==false && radChk[1].checked==false && radChk[2].checked==true)
{
    document.getElementById('chkhardsaves').style.visibility='hidden';
    document.getElementById('chkcostavoid').style.visibility='hidden';
     document.getElementById('chkopporcost').style.visibility='visible';
     document.forms[0].HardSavings.value="";
     document.forms[0].CostAvoid.value="";     
}
 
else if(radChk[0].checked==false && radChk[1].checked==true && radChk[2].checked==true)
{
    document.getElementById('chkhardsaves').style.visibility='hidden';
    document.getElementById('chkcostavoid').style.visibility='visible';
     document.getElementById('chkopporcost').style.visibility='visible';
     document.forms[0].HardSavings.value="";
}
 
else if(radChk[0].checked==false && radChk[1].checked==false && radChk[2].checked==false)
{
    document.getElementById('chkhardsaves').style.visibility='hidden';
    document.getElementById('chkcostavoid').style.visibility='hidden';
     document.getElementById('chkopporcost').style.visibility='hidden';
     document.forms[0].HardSavings.value="";
     document.forms[0].CostAvoid.value="";     
     document.forms[0].OpporCost.value="";     
}
}
 
// -->
</script>
</head>
<body text="#000000" bgcolor="#FFFFFF" onload="var dbName=document.forms[0].dbName.value //*******

if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
}
//for ie
 
 
    if (window.XMLHttpRequest) {
        // we are in a non-IE browser
        xmlhttp=new XMLHttpRequest()
    } else if (window.ActiveXObject) {
        // we are in IE
        xmlhttp=new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;)
    }

sol_id=document.forms[0].txtsol_id.value
//alert(sol_id);
//------------------------
//COMMENTEDst = getHtmlFromXml(&quot;/&quot; + dbName+ &quot;/(feedbackbydocid)?ReadViewEntries&amp;Count=-1&amp;CollapseView&amp;RestrictToCategory=&quot;+temp1)

xmlhttp.open(&quot;POST&quot;,&quot;/ajxgetadoptionsolution?sol_id=&quot;+sol_id,false)
xmlhttp.send()
st=xmlhttp.responseText

 
//alert(st)
if (window.ActiveXObject)
  {
 
if( document.getElementById(&quot;idContent&quot;) !=null)
{
document.getElementById(&quot;idContent&quot;).innerHTML = st
}
}
else
{
if( document.getElementById(&quot;idContent&quot;) !=null)
{
document.getElementById(&quot;idContent&quot;).appendChild(st)
 
}
}
window.print()
">


<form method="post" name="_frmPrint"   >
<input type="hidden" name="__Click" value="0"><div style="display:none">1F0D0776828A369C852576AB004DB2B9</div>
<div style="display:none">
<input name="fldStatus" value=""> 
<input name="soldocid" value="1F0D0776828A369C852576AB004DB2B9">
<input name="HideAdoptions" value="0"></div>
<div id="RestrictToCategory" style="display:none"></div>
<div id="logguser" style="display:none">CN=Srinivas Vanamala/OU=SG/OU=Asia/O=Celestica</div>
<input type="hidden" name="queryStringval" value="1F0D0776828A369C852576AB004DB2B9">
<input type="hidden" name="dbName" value="global/collaboration/SavvySol.nsf">
<div id="parentcontent"  style="display:none"></div>
<div id="loggdocid" style="display:none">47F963E46FBBE05C85257A64000F416A</div>
<div id="agtresponse"></div><div style="display:none">global/collaboration/SavvySol.nsf</div>
<div style="display:none">Draft</div>
<div id="issupereditadmin" style="display:none">Yes</div>
<div id="currdocunid" style="display:none">47F963E46FBBE05C85257A64000F416A</DIV>
<input name="imgPath" type="hidden" value="global/collaboration/SavvySol.nsf"><SCRIPT LANGUAGE="JavaScript1.2" SRC="/global/collaboration/SavvySol.nsf/scriptsevents.js"  TYPE='text/javascript'></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="/global/collaboration/SavvySol.nsf/jquery.js"  TYPE='text/javascript'></SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="/global/collaboration/SavvySol.nsf/jtip.js"  TYPE='text/javascript'></SCRIPT>
<link rel="stylesheet" type="text/css" href="/global/collaboration/SavvySol.nsf/global.css">
<link rel="stylesheet" type="text/css" media="all" href="/global/collaboration/SavvySol.nsf/layout5_setup.css" /><!--<form id="frmSavvySolution">-->  
<input type="hidden" name="valFieldList" value="cmbCustomer,Customer,cmbProcessarea,Process Area,cmbSite,Location,dtDate,Implementation Date,namSolTL,Solution Team Lead,txtTheme,Title,taProbDef,Problem Definition,taProbAnalysis,Problem Analysis,taProbRootCause,Problem Root Cause,taImpSol,Implement Solutions,taEvalRes,Evaluate Results,chkBenefits,Check Benifits,taPrevRec,Preventive Reoccurence,taImpTime,Implementation Time" />
<div id="lotusContent"></div><style type="text/css" media="print,screen" >

thead {
         display:table-header-group;
}
tbody {
         display:table-row-group;
}
</style>

<table border="0" cellpadding="2" cellspacing="0">
         <thead>
                 <tr>
                         <th>
<fieldset style="border:2px ridge #CECFCE; color: #CECFCE; width: 600px;">
<table class="bestofbest" border="1" width="100%">
<tr>
<td width="10%"><img src="/img/4Guys_on_puzzles.JPG"   align="TEXTTOP"> </td>
<td><h1><b>Operations Central: The power of sharing</b></h1></td>
</td>
</tr>
</table>
</fieldset>
</th>
                 </tr>
         </thead>
         <tbody>
    <tr>
     <td>
<fieldset style="border:2px ridge #CECFCE; color: #CECFCE; width: 600px;">
<legend >Recognition</legend>
<table class="bestofbest"  border="1" width="100%">
<tr valign="top"><td  class="x" width="30%"><p>
<img src="/img/Thumbicon.gif"><br><%= rcdrs.size() %>  <b><font align="top">Expert(s)Recommend</font> </a>
</td>
<td  class="xy" width="70%">
<table class="bestofbest"  border="1" width="100%">
<tr valign="top">
<td  class="x" width="20%" rowspan="5"><p>
<% if ( isMPS ) { %>
	<td width="20%" ><font color="#FFB208" > <b>MPS Candidate &nbsp; <img src="/img/MPS_seal.jpg"   align="TEXTTOP"> </b></font></td>
<% } %>

<% if ( isNominated ) { %>
	<td width="20%" ><font color="#F6821F" align="Top" > <b>Best of Site </b></font></td>
<% } %>

<% if ( isbestOfRegion ) { %>
	<td width="23%" valign="top"><font color="#BECF1A" size="5px"><b>Best of Region  &nbsp;<b></font><img  src="/img/seal_bestofregion_green_30x30.jpg"  align="TEXTTOP"></td>
<% } %>

<% if ( isbestOfBest ) { %>
	<td width="20%" ><font color="#FFB208" > <b>Best of Best &nbsp; <img src="/img/seal_bestofbest_gold_30x30.jpg"   align="TEXTTOP"> </b></font></td>	
<% } %>



</tr>
</table>



</td>
</tr>
</table>
</fieldset>
<br>
<fieldset style="border:2px ridge #CECFCE; color: #CECFCE; width: 600px;">
<legend ><span class="frm-labelparent"><b>Solution#:&nbsp;<%=sSolCode %></span><span id="id16" class="frm-labelchildbold"></span></b></legend>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
<tr><td width="40"><img height="1" border="0" width="1" src="/img/transparent.gif"/>
</td></td><td align="right" colspan="2" class="h-fieldHeaderEdit-bgtext"><div align="right"><span class="frm-label">Status: <font color="#FFB208"><span id="id17" class="frm-labelchild"></span> <%=Status %> </font></span></div></td><td width="40"><img height="1" border="0" width="1" src="/img/transparent.gif"/></td>
        
        </tr>c
        <tr class="h-edit-bg">
            <td colspan="4">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="frm-labelparent">Title: </span><br></td>
<td colspan="3" width="85%" class="h-fieldEdit-text" valign="top">
<div id="id7" class="frm-labelchild">
    <%=Title %>
</div>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="4">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext"><img height="1" border="0" width="10"              
src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext"><img height="1" border="0" width="10"                          
src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext"><img height="1" border="0" width="10"                          
src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Customer: </span></td>
<td width="20%" class="h-fieldEdit-text">
            <div id="id1" class="frm-labelchild">
                   <%=Customer %>
            </div>
            </td>
<td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Date Implemented: </span></td>
<td width="30%" class="h-fieldEdit-text">
                <div id="id4" class="frm-labelchild">
                    <%=dtImplemented %>
                </div>&nbsp;&nbsp;
                </td>
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Location: </span></td>
            <td width="20%" class="h-fieldEdit-text">
            <div id="id3" class="frm-labelchild">
                    <%=Location %>
            </div> 
            </td>
<td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Date Shared: </span></td>
<td width="30%" class="h-fieldEdit-text">
            <div id="id24" class="frm-labelchild">
                 <%=dtShared %>
            </div>    &nbsp;&nbsp;
            </td>   
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
            <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Process Area: </td>
                <td width="20%" class="h-fieldEdit-text">
            <div id="id2" class="frm-labelchild">
                          <%=processArea %>
            </div>
            </td>   
    <td width="20%"class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Solution Team Lead:</span></td> 
            <td width="30%" class="h-fieldEdit-text" valign="top">
            <div id="id5" class="frm-labelchild">
                           <%=teamLead %>
            </div> 
</td>
            </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
            <tr>
            <td width="15%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Solution Type: </td>
                <td width="20%" class="h-fieldEdit-text">
            <div id="id22" class="frm-labelchild">
                   <%=solType %>
            </div></td>
            <td width="20%" class="h-fieldHeaderEdit-bgtext"><span class="frm-label">Team Members:</span></td>
            <td width="30%" class="h-fieldEdit-text" valign="top">
                        <div id="id6" class="frm-labelchild">
                              <%=teamMembers %>
                        </div>
</td>           
            </tr>
                    
    <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="1" width="100%">
    <tbody>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg" valign="top">
            <td width ="40%" class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        <td width="20%" class="h-fieldHeaderEdit-bgtext"> <span class="frm-label">Other Team Members:</span></td>
        <td width="30%" class="h-fieldEdit-text" valign="top">
             <div id="id23" class="frm-labelchild">
                    <%=otherTeamMembers %>
             </div> 
        </td>
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Step 1:  Define and measure the problem</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id8" class="frm-labelchild">
                    <%=S1 %>
                </div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
<span class="frm-label">Step 2:  Analyze the data</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id9" class="frm-labelchild">
                            <%=S2 %>
                </div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Step 3:  Identify Root Cause(s)</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id10" class="frm-labelchild">          <%=S3 %></div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Step 4:  Implement Solution</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id11" class="frm-labelchild">          <%=S4 %></div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Step 5:  Evaluate Results</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id12" class="frm-labelchild">          <%=S5 %></div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Achieved Benefit:</span>
</td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
		<tr class="h-edit-bg">
			
			<td width="97%" class="h-fieldEdit-text">
				<table class="sampletd">
				<tr>
				<td>
				<%=achievedTypeDesc %>
				
					<% if (achievedTypeDesc.equals("Order Lead Time")) { %>					
						<span id="chkdays"><%=achievedValue%>&nbsp;&nbsp;(In Days)</span>				
	
					<% } else if (achievedTypeDesc.equals("Quality")) { %>
						<span id="chkquality" >&nbsp;&nbsp;<%=achievedValue%></span>&nbsp;&nbsp;<span id="chkdays"><%=achievedUnits%></span>
					<% } %>								
				
				</td>
				<td>
				</td>
				</tr>
				</table>
			</td>
			<td>
				<img height="1" border="0" width="1" src="/img/transparent.gif"/>
			</td>
			<td class="h-edit-bg" align="right" valign="top">
				<img height="1" border="0" width="1" src="/img/transparent.gif"/>
			</td>
			
		</tr>
        
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="Red10">*</span><span class="frm-label">Financial Benefit:</span>
</td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <table class="sampletd">
                <tr>
                <td>
                
                <table>
                <% if (ishasHardSavings){ %>
                <tr><td><div id="id18" class="frm-labelchild">
                  Hard Savings :&nbsp; <%=hardSavings %>  &nbsp; ($USD)
                </div></td></tr>
                <%}%>
                
                <% if (ishasCostAvoidance){ %>
                <tr><td><div id="id18" class="frm-labelchild">
                 Cost Avoidance :&nbsp; <%=costAvoidance %>  &nbsp; ($USD)
                </div></td></tr>
                <%}%>
                
                <% if (ishasOppurtunityCost){ %>
                <tr><td><div id="id18" class="frm-labelchild">
                Opportunity Cost :&nbsp; <%=oppurtunityCost %>  &nbsp; ($USD)
                </div></td></tr>
                <%}%>
                
                </table>
                </td>
                <td>
<table class="sampletd">
                <tr>
                <td></td></tr>
</table>
                </td>
                </tr>
                </table>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody><tr><td class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label" align="center">Total Annual Production Savings: </span>
            <div id="id21" class="frm-labelchild">
                <%=annProdSavings %> &nbsp; ($USD) 
            </div>
            </td></tr>
</tbody></table>
<br>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody><tr><td class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label" align="center"><u>Definition of the categories:</u> </span></td></tr>
</tbody></table>
<br>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody><tr><td width="97%" class="h-fieldHeaderEdit-bgtext">
<span class="frm-label" align="center">
1) Hard savings (Scrap reduction, IDM Usage Reduction, Head Count reduction, Indirect Production Reduction)</span></td></tr>
<tr><td width="97%" class="h-fieldHeaderEdit-bgtext">
<span class="frm-label" align="center">
2) Cost avoidance (Quality Improvement, Expenses prevention, Capital Spending Avoidance)</span></td></tr>
<tr><td width="97%" class="h-fieldHeaderEdit-bgtext">
<span class="frm-label" align="center">
3) Opportunity costs (Process Cycle time reduction, Set-up Time Reduction, System/productivity Improvement)</span></td></tr>
</tbody></table><table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="steptxt"></span><span class="frm-label">How many days did it take to implement this solution into the factory?</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id14" class="frm-labelchild"> <%=impDays %></div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Step 6:  Prevent Recurrence</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
            <td colspan="3">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr class="h-edit-bg">
            
            <td width="97%" class="h-fieldEdit-text">
                <div id="id15" class="frm-labelchild"> <%=S6 %></div>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>
    </tbody>
</table>
<table cellspacing="0" cellpadding="1" border="0" width="100%">
    <tbody>
        <tr>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
            <td class="h-fieldHeaderEdit-bgtext">
                <img height="1" border="0" width="10" src="/img/transparent.gif"/>
            </td>
        </tr>
        <tr>
            <td width="97%" class="h-fieldHeaderEdit-bgtext">
            <span class="frm-label">Attachment(s):<br>
Optionally, you can add attachments by clicking the Browse... button and selecting the desired file.</span></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            <td class="h-fieldHeaderEdit-bgtext"  align="right" valign="top"></td>
            
        </tr>
        <tr class="h-edit-bg">
        <td width="97%" class="h-fieldEdit-text">
                  <br>
<br>
<br>
<br>

<p><font size="2" color="#FF0000" face="Verdana">               </font><div id="id30"></div><br>
            </td>
            <td>
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            <td class="h-edit-bg" align="right" valign="top">
                <img height="1" border="0" width="1" src="/img/transparent.gif"/>
            </td>
            
        </tr>
        <tr class="h-edit-bg">
            <td height="8" width="3%" colspan="3">
                <img height="4" border="0" width="1" src="/img/transparent.gif"/>
            </td>
        </tr>

    </tbody>
</table>

</fieldset>
</br>

</td> </tr>
<tr><td>
</td></tr>
                         
         </tbody>
</table>

<br>
<br>
<fieldset style="border:2px ridge #CECFCE; color: #CECFCE; width: 600px;">
<legend>Adoption and Continuous Improvement</legend>
 
<div id="currdocunid" style="display:none">8AB00891A7FDDD4A4825766D002A23AF</div>
<p><div id="idContent"></div>
<br>
</fieldset>
 
<br>
<div id="idQResponses"></div>
 
 
<br>
</div>
<!--End of Lotus Content-->
</div>
<!--End of Lotus Main-->
</div>
 
 
<!-- Footer gets moved to within Frame div in weblog.vm so closing tags need to go in weblog.vm - MTodd November 1 2007 </body> </html> -->
</div>
 
</div>
<p><br>
<br>
<br>
 
<div id="dd"  style="display:none" >
<input type="button" value="Submit-SavvySolution" id="btnSubmitIdeaGenerator" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.15E', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Save-SavvySolution" id="btnSaveIdeaGenerator" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.2F4', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Delete-DraftSolution" id="btnDeletesavvysolution" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.466', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Save-SavvySolution-Admin" id="btnSaveIdeaGeneratoradmin" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.59E', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-Feedback" id="btnSubmitfeedbackGenerator" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.6FE', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-FeedbackP" id="btnSubmitfeedbackPGenerator" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.86C', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Post-Feedback" id="btnCommFeedback" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.9DC', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Accept-Manager" id="btnAcceptMgr" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.B04', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Reject Mgr" id="btnRejectMgr" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.C56', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Accept-Expert" id="btnAcceptExpert" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.DA4', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Reject Expert" id="btnRejectExpert" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.EFC', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Edit" id="btnEditdoc" onclick="window.open('/global/collaboration/SavvySol.nsf/0/8ab00891a7fddd4a4825766d002a23af?EditDocument', document._domino_target);"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add Basket" id="btnAddBasket" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.115E', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove from Basket" id="btnRemoveBasket" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1286', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Submit-Feedback to super user" id="btnSubmitSubmitFeedbacktosuperuser" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.13C0', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add Pick" id="btnAddPick" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1514', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove from Pick" id="btnRemovePick" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.163A', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Add MPS" id="btnAddmps" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.1770', this, null)"></div>
<div id="dd"  style="display:none" >
<input type="button" value="Remove MPS" id="btnRemoveMPS" onclick="return _doClick('852578AB003095E7.d91bd37116572efb85257609005f2620/$Body/0.18B4', this, null)"></div>

<input name="txtsol_id" type="hidden" value="<%=sSolID%>"> 
 
 
<script type="text/javascript"> 
var dbName="global/collaboration/SavvySol.nsf"
var docstate="Submitted"
 
if(true)
{
 
var vurl= "/ajxshowquestionresponse"
var SolID = document.forms[0].txtsol_id.value 
 
//checking whether browser is mozila or Netscape
    if (window.XMLHttpRequest) 
    {   
//      alert('INSIDE HTTP')
        req = new XMLHttpRequest();
//      alert(req+' - - req - - ')
        //req.overrideMimeType('text/xml');
 
        req.onreadystatechange = processReqChange_lookupQresp;
        req.open("POST", vurl , true);
        req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
        req.send("sol_id=" + SolID);
             } 
        //checking whether browser is IE 
    else if (window.ActiveXObject)
    {
//          alert('entered the else of XMLHTTPRequest--- '+ window.ActiveXObject)
        req=new ActiveXObject("Microsoft.XMLHTTP")
        
         if (req)
       { 
 
            req.onreadystatechange = processReqChange_lookupQresp;
            req.open("POST", vurl, true);
            req.setRequestHeader("Content-type","application/x-www-form-urlencoded");
            req.send("sol_id=" + SolID);
        }
     }
}
 
 
 
</script>
 
    <link type="text/css" href="/css/jquery/themes/base/ui.all.css" rel="stylesheet" />
 
    <script type="text/javascript" src="/js/jquery/ui/ui.core.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/ui.draggable.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/ui.resizable.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/ui.dialog.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/effects.core.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/ui.accordion.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/effects.highlight.js"></script>
    <script type="text/javascript" src="/js/jquery/external/bgiframe/jquery.bgiframe.js"></script>
    <script type="text/javascript" src="/js/jquery/ui/jquery.livequery.js"></script>
 
    <link type="text/css" href="/css/demos.css" rel="stylesheet" />
    
 
<br>
<br>
<script type="text/javascript"> 
 
 
 
</script>
 
<br>
<br>
 
 
 
<br>


<input name="Remote_User" type="hidden" value="CN=Srinivas Vanamala/OU=SG/OU=Asia/O=Celestica">
<input name="txtSigma" type="hidden" value="False">
<input name="KeyVal" type="hidden" value="">
<input name="UnscribeKeyVal" type="hidden" value="">
<input name="HTTP_Cookie" type="hidden" value="__utma=88700297.2139840081.1252660669.1256102687.1258527027.3; __utmz=88700297.1258527027.3.2.utmccn=(referral)|utmcsr=myapp5.asia.ad.celestica.com|utmcct=/comm/global/global.nsf|utmcmd=referral; forums_opscntrl_u=1; forums_opscntrl_k=; forums_opscntrl_sid=f7be925b4fc07f93fe19c6f298824942; LtpaToken=dqZKZHEvblk7b4Y0Tes+YHhR4LfBuM+LyDgg2OU8Pg3uAw56XX52XNh7nAjiS3EDcdqDoyA1GkkVMwSo6KXJwIj3tmNgq/pDKddvOeaSjVqItpkJucV8mZrgkrYsUrap9C/s/1N03hiMWUT7FDljMzOMFDQiKtRl6Nc5m5dxQf/DrVQp0RPnqrj8SHi3NvD03xD3TIWea/hfyz0oHBLocy8boSh7JjRX29wgimdGmbtAxuJDtiJX7KiDtieaWk1Vl4kDZH7BpNUgR/nQ/Y49V/5Fku6wjgMnIkSIxBQSeQfaqHFsAL3FWjZ0EydozGWsNPZKoFzlNSyHC2zKfRE5TQ==">
<input name="$V2AttachmentOptions" type="hidden" value="0">
<input name="SolReaders" type="hidden" value="">
<input name="soldocid" type="hidden" value="A829DC7A1DE6C3C44825766D00287123">
<input name="txtCheckbenefits" type="hidden" value="Customer satisfaction">
<input name="datsubmitted" type="hidden" value="">
<input name="HTTP_Referer" type="hidden" value="/home.jsp">
<input name="Server_Name" type="hidden" value="tortst6.ca-tor.celestica.com">
<input name="textProbDef" type="hidden" value="1. Current Conap 1155 coating materials are purchase by one sets (one IDM parts no) , Part A -coating &amp; part B - curing agent ,and ratio 1: 1. Actual usage in line are 1: 0.7,  30% curing agent are always excess and scrap. 2. Conap 1155 high wastage on coating machine. Each cycle of 6 hrs (Pot life), average waste is 200 ml, total waste per day is 800ml = USD 68, per annum is USD 20,000.">
<input name="textPrevRec" type="hidden" value="keep on monitoring the finance figure and production monthly usage">
<input name="SolAuthors" type="hidden" value="[OpSiteCoach], [SolManager]">
<input name="curUsername" type="hidden" value="CN=Arunkumar Reddy Bannur/OU=Inc/O=Celestica">
<input name="mpscandidate" type="hidden" value="no">
<input name="photodocid" type="hidden" value="">
<input name="docUnID" type="hidden" value="8AB00891A7FDDD4A4825766D002A23AF">
<input name="lastnum" type="hidden" value="168">
<input name="SolRequestor" type="hidden" value="Ravichandran Govindasamy/MY/Asia/Celestica">
<input name="numImplsolutions" type="hidden" value="0">
<input name="totRating" type="hidden" value="0">
<input name="cmbSolRegion" type="hidden" value="South-East Asia">
<input name="cmbSolSiteID" type="hidden" value="CMY">
<input name="Query_String_Decoded" type="hidden" value="EditDocument&amp;Seq=1">
<input name="dbName" type="hidden" value="/home.jsp">
<input name="AttachmentNames" type="hidden" value="">
<input name="FieldStatus" type="hidden" value="Submitted">
<input name="issuperadmin" type="hidden" value="Yes">
<input name="currdocunid" type="hidden" value="8AB00891A7FDDD4A4825766D002A23AF">
<input name="QuickSearch" type="hidden" value="0">
<input name="UserProfileInfo" type="hidden" value="">
<input name="txtProfileUNID" type="hidden" value="">
<input name="SearchQuery" type="hidden" value="Search...">
<input name="seqnum" type="hidden" value="CMY00168">
<input name="txtStatus" type="hidden" value="Shared">
<input name="txtTheme" type="hidden" value="Reduced conap coating chemical monthly usage">
<input name="cmbCustomer" type="hidden" value="All Customers">
<input name="dtDate" type="hidden" value="10/01/2009">
<input name="cmbSite" type="hidden" value="Kulim">
<input name="dtShared" type="hidden" value="">
<input name="cmbProcessarea" type="hidden" value="Chemicals">
<input name="namSolTL" type="hidden" value="Misbahwazir Mohd Faudzi/MY/Asia/Celestica">
<input name="cmbSolutionType" type="hidden" value="Kaizen">
<input name="namSolTM" type="hidden" value="Choy Men Choong/MY/Asia/Celestica, Ismail Abdullah Ismail Ismail/MY/Asia/Celestica, Mooi Keow Lee/MY/Asia/Celestica, Redzuan Ismail/MY/Asia/Celestica, S. Ganesan Subermaniam/MY/Asia/Celestica, Ti Loon Ang/MY/Asia/Celestica, Tik Azman Zainuddin/MY/Asia/Celestica, Zaini Ghani/MY/Asia/Celestica, Leong Hun Soon/MY/Asia/Celestica, Nor Riza/MY/Asia/Celestica, Seong Kiat Yap/MY/Asia/Celestica">
<input name="namOthTM" type="hidden" value="">
<input name="chkBenefits" type="hidden" value="6">
<input name="taQuality" type="hidden" value="">
<input name="cmbQualityOptions" type="hidden" value="--Select--">
<input name="taDays" type="hidden" value="">
<input name="taProdSav" type="hidden" value="">
<input name="taMatSav" type="hidden" value="">
<input name="FinanBenefits" type="hidden" value="3">
<input name="HardSavings" type="hidden" value="">
<input name="CostAvoid" type="hidden" value="">
<input name="OpporCost" type="hidden" value="15000">
<input name="TotAnnualProd" type="hidden" value="15000">
<input name="taImpTime" type="hidden" value="60">
</form>
</body>
</html>